class PageState {
  // loading,
  // success,
  // empty,
  // error,
  //
  // // refresh related
  // refreshSuccess,
  // refreshFail,
  // // load more related
  // loadMoreSuccess,
  // loadMoreFail
}

class LoadingState extends PageState {}

class SuccessState extends PageState {}

class EmptyState extends PageState {
  final int _code;
  final String _msg;

  EmptyState(this._code, this._msg);

  String get msg => _msg;

  int get code => _code;
}

class ErrorState extends PageState {
  final int _code;
  final String _msg;

  ErrorState(this._code, this._msg);

  String get msg => _msg;

  int get code => _code;
}
